package com.server.dao;

import java.util.Date;
import java.util.Vector;
import com.data.User;
import com.server.mock.MockDBQueries;

public class JDBCUserDAO extends AbstractUserDAO {
	MockDBQueries mockDB = new MockDBQueries();

	public boolean saveUser(User u) {
		return mockDB.saveUser(u);
	}

	public boolean updateUser() {
		return mockDB.execMockDBQuery();
	}

	public boolean updateCheckedTime(Date newTime, User usr) {
		return mockDB.updateCheckedTime(newTime, usr);
	}

	public boolean updateNotifiedTime(Date newTime, User usr) {
		return mockDB.execMockDBQuery();
	}

	public User getUser(String userID) {
		return mockDB.getUserFromDB();
	}

	public Vector<User> getUsersByInterval(int interval) {
		return mockDB.getUsersByInterval(interval);
	}

	public boolean updateCheckedTime(Date newTime, String usr) {
		return mockDB.execMockDBQuery();
	}

	public void saveUserDeviceRegID(String userID, int deviceId, String regID) {
		mockDB.saveUserDeviceRegID(userID, deviceId, regID);
	}
}